package com.ctshk.common.enums;

/**
 * 套票保险枚举
 *
 * @author Eric 2021-04-26
 */
public enum InsuranceType {

    TRIP("旅行團", 1, "旅行團", ""),
    CUSTOMIZE("定制包團", 2, "定制包團", ""),
    CRUISE("郵輪", 3, "郵輪", ""),
    AIRHOTEL("機票+酒店", 4, "固定套票", "套票類型為機票+酒店"),
    TRAINHOTEL("火車+酒店", 5, "固定套票", "套票類型為火車票+酒店"),
    SHIPHOTEL("船票+酒店", 6, "固定套票", "套票類型為船票+酒店"),
    BUSHOTEL("巴士+酒店", 7, "固定套票", "套票類型為巴士+酒店"),
    AIR("機票", 8, "機票", ""),
    TRAIN("火車票", 9, "火車票", ""),
    SHIP("船票", 10, "船票", ""),
    BUS("巴士票", 11, "巴士票", "");

    private String range;
    private int key;
    private String values;
    private String remarks;

    InsuranceType(String range, int key, String values, String remarks) {
        this.range = range;
        this.key = key;
        this.values = values;
        this.remarks = remarks;
    }

    public static InsuranceType getEnumType(int key) {
        for (InsuranceType each : InsuranceType.values()) {
            if (each.getKey() == key) {
                return each;
            }
        }
        return null;
    }


    public String getRange() {
        return range;
    }

    public void setRange(String range) {
        this.range = range;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int key) {
        this.key = key;
    }

    public String getValues() {
        return values;
    }

    public void setValues(String values) {
        this.values = values;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }
}
